package com.patterns.observer;

/**
 * A观察者
 * @author huangke
 *
 */
public class ConcreteObserver implements Observer{
	
	private String name;//观察者标识
	
	public ConcreteObserver(String name) {
		this.name = name;
	}

	public void update(String msg) {
		System.out.println("观察者"+name+"收到通知:" + msg);
	}

}
